package com.scau.os.extension;

public class CostomUnRegister implements IUnRegister {
    Runnable runnable;

    public CostomUnRegister(Runnable runnable) {
        this.runnable = runnable;
    }

    @Override
    public void UnRegister() {
        runnable.run();
        runnable=null;
    }
}
